package zuoye;

public class zuoye3 {
public static void main(String[] args) {
	int num=10;
	
	for(num=10;num<100000;num++){
		int num0=num%10;
		int num1=num/10%10;
		int num2=num/100%10;
		int num3=num/1000%10;
		int num4=num/10000%10;
		if(num<100&&num0==num1){
			System.out.println(num);
		}else if(num<1000&&num>100&&num0==num2){
			System.out.println(num);
		}else if(num>1000&&num<10000&&num0==num3&&num1==num2){
			System.out.println(num);
		}else if(num0==num4&&num1==num3){
			System.out.println(num);
		}
		
	}
}
}
